'''
Author: ytj
Date: 2024-01-23 10:48:10
LastEditTime: 2024-01-23 10:50:32
LastEditors: ytj
Description: 文件描述
'''
# encoding:utf-8
import requests 

# 接口地址
url = "https://api.map.baidu.com/reverse_geocoding/v3"

# 此处填写你在控制台-应用管理-创建应用后获取的AK
ak = "V5vNGZRV1Ar4115Vly1qcwIeLizrVf7m"

params = {
    "ak":       ak,
    "output":    "json",
    "coordtype":    "gcj02ll",
    "extensions_poi":    "0",
    "location":    "34.845173,113.739681",

}

response = requests.get(url=url, params=params)
if response:
    print(response.json())